package de.lns.level;

import java.awt.Point;

import de.lns.entities.Entity;
/**
 * 
 * @author Frederick Hastedt
 *
 */
public class Circle implements Shapes{
	
	
	private double centerX;
	private double centerY;
	private double radius;
	private Entity entity;
	
	/**
	 * 
	 * @param x: center, X coordinate
	 * @param y: center, Y coordinate
	 * @param r: radius
	 */
	public Circle(double x, double y, double r){
		centerX = x;
		centerY = y;
		radius = r;
	}
	public Circle(Entity entity, double r){
		this.entity=entity;
		this.radius=r;
	}
	/**
	 * 
	 * @return center, X coordinate
	 */
	public double getCenterX() {
		if(entity==null){
			return centerX;
		}
		else{
			return entity.getPosX();
		}
	}
	
	/**
	 * 
	 * @return center, Y coordinate
	 */
	public double getCenterY() {
		if(entity==null){
		return centerY;}
		else{
			return entity.getPosY();
		}
	}
	
	/**
	 * 
	 * @return radius
	 */
	public double getRadius() {
		return radius;
	}
	
	
	
}
